//# sourceURL=http://uMapApp/UI/IconMenu/IconMenuSlideButtons
define([
    "mhjs/mhjs",
    "./IconMenuSlideButton"
], function (
    mhjs,
    IconMenuSlideButton
) {

    function IconMenuSlideButtons(option) {
        var _this = this;
        _this.dom = $("<div class='iconMenuSlideButtons'></div>");
        _this.list = option.list;

    }

    var _class = IconMenuSlideButtons;

    mhjs.Inherit(_class, mhjs.Div);

    Object.defineProperties(_class.prototype, {
        "list"       : {
            set: function (list) {
                var _this = this;
                if (list) {
                    _this._list = [];
                    _this.dom.empty();
                    $.each(list, function (i, item) {
                        var iconMenuSlideButton = new IconMenuSlideButton(item);
                        iconMenuSlideButton.parent = _this;
                        _this._list.push(iconMenuSlideButton);
                        _this.dom.append(iconMenuSlideButton.dom);
                    });
                }
            },
            get: function () {
                return this._list;
            }
        },
        "activeAll"  : {
            value: function () {
                var _this = this;
                $.each(_this._list, function (i, item) {
                    item.active();
                });
            }
        },
        "inactiveAll": {
            value: function () {
                var _this = this;
                $.each(_this._list, function (i, item) {
                    item.inactive();
                });
            }
        }
    });

    return _class;

});